# print(99999999999999999*9999999999999999999999999)
# print(0b1101100) # 2
# print(0o74) #8
# print(0x1A5F) #16
# print((3 + 1j) * (5 + 2j))
# print(True + 1)
# print(False + 1)
# num = 10
# print(bin(num))
# print(oct(num))
# print(hex(num))
# print("helloworld", 123, 456)
# print("helloworld", 123, 456, sep = " ", end = " ")
# print("helloworld", 123, 456)
# name = "张三"
# age = 18
# adress = "河南"
# # print("我叫%s , 今年%d岁， 住在%s" % (name, age, adress))
# print("我叫{}，今年{}，住在{}".format(name, age, adress))
# print("我叫{name}，今年{age:.2f}，住在{adress}".format(name = name, age = age, adress = adress))
# print("我叫{name}，今年{age}，住在{adress}".format(name = "wangwu", age = 21, adress = "dongbei"))
# print("我叫{1}，今年{2}，住在{0}".format(name, age, adress))

# num = 123456
# print(f'[{num:10}]')
# print(f'[{num:>10}]')
# print(f'[{num:<10}]')
# print(f'[{num:^10}]')


# a, b ,c = eval(input("请输入三个数字："))
# print(a + b + c)
# try:
#     num1 = int(input("请输入第一个数字："))
#     num2 = int(input("请输入第二个数字："))
#     result = num1 / num2
#     print(result)
# except ZeroDivisionError:
#     print("0不可以做除数")
# except:
#     print("出现错误")

# try:
#     num1 = int(input("请输入第一个数字："))
#     num2 = int(input("请输入第二个数字："))
#     result = num1 / num2
#     print(result)
# except ZeroDivisionError:
#     print("0不可以做除数")
# else:
#     print("正常运行")

# try:
#     num1 = int(input("请输入第一个数字："))
#     num2 = int(input("请输入第二个数字："))
#     result = num1 / num2
#     print(result)
# except ZeroDivisionError:
#     print("0不可以做除数")
# else:
#     print("正常运行")
# finally:
#     print("一定会执行，用于释放空间")
# s1 = "hello"
# s2 = "world"
# print(s1 + s2)
# set1 = {1, 2, 3, 4}
# set2 = {2, 3, 5, 6}
# print(set1 - set2)
# print(set2 - set1)
# print(s1 * 5)
# print(6 / 5)
# print(6 / 3)
# print(6 // 3)
# print(6.0 // 3)
# & | ^
# print(5 & 6)
# print(5 | 6)
# num = 25
# print(~num)
# a = 5
# b = 3
# a |= b
# print(a)
"""
1~~~~~~~`
2.~~~~~~~~~`
3.~~~~~~~~~~~~~~~~~~~~~~~~~
"""
# print(__doc__)

# celsius = float(input())
# fahrenheit = 9 / 5 * celsius + 32
# print(fahrenheit)

# import math
# radius, heigh = map(float, input().split(" "))
# area = radius ** 2 * math.pi
# volume = area * heigh
# print(f'{area:.2f},{volume:.2f}')
# x1, y1, x2, y2, x3, y3 = map(float, input().split(" "))
# side1 = ((x1 -x2) ** 2 + (y1 - y2) ** 2) ** 0.5
# side2 = ((x1 -x3) ** 2 + (y1 - y3) ** 2) ** 0.5
# side3 = ((x3 -x2) ** 2 + (y3 - y2) ** 2) ** 0.5
# s = (side1 + side2+ side3) / 2
# area = ((s * (s - side1) * (s - side2) * (s - side3))) ** 0.5
# print(f'{area:.1f}')
"""
显示当前时间
"""
# import time
# #获取当前时区
# zone = int(input())
# #获得全部的秒
# total_seconds = time.time()
# #获取当前的秒
# cur_second = total_seconds % 60
# cur_second = int(cur_second)
# #获取全部的分钟
# total_min = total_seconds // 60
# #获取当前的分钟
# cur_min = total_min % 60
# cur_min = int(cur_min)
# #获取全部的小时
# total_hour = total_min // 60
# #获取当前的小时
# cur_hour = total_hour % 24
# cur_hour = (cur_hour + zone) % 24
# print(f'{cur_hour:.0f}:{cur_min}:{cur_second}')

"""
最小数量的硬币
将金额全部换成最小单位
"""
# #总金额
# money = float(input())
# #换算成最小单位
# money *= 100
# #yiyuan
# yuan = money // 100
# #liangjiaowufen
# liangjiaowufen = money % 100 // 25
# #yijiao
# yijiao = money % 100 % 25 // 10
# #wufen
# wufen = money % 100 % 25 % 10 // 5
# #yifen
# yifen = money % 100 % 25 % 10 % 5

# print(yuan)
# print(liangjiaowufen)
# print(yijiao)
# print(wufen)
# print(yifen)
# import random
# num = random.randint(10, 50)
# print(num)
# number = 30
# if number % 2 == 0:
# 	print(number,"is even.")		
# print(number,"is odd.")
# x = 2
# if x > 2:
# 	if y > 2:
# 		z = x+y
# 		print("z is",z)
# 	else:
# 		print("x is",x)
# i = 5
# if i > 0:
#     x = 0
#     y = 1
# else:
#     y = 0
#     z = 0
# print(x,y,z)
#  i = 5
#  x = 2
#  z = 3
# if i > 0:
#   x = 0
#   y = 1
# else:
#     y = 0
#   z = 0
# income = 232323
# if income <= 10000:
# 	tax = income *0.1
# elif income > 10000 and income <= 20000:
# 	tax = 1000 + (income - 10000) * 0.15
# print(tax)
# x = 1
# print(True and (3 > 4)  )
# print(not (x > 0) and (x > 0))
# print((x > 0) or (x < 0) )
# print((x != 0) or (x == 0) )
# print((x >= 0) or (x < 0) )
# # print((x != 1) == Flase)
# x = 4
# y = 5
# print(x >= y >= 0 )
# print(x <= y >= 0  )
# print(x != y == 5   )
# print((x != 0) or (x == 0) )
# x, y, z = eval(input("Enter three numbers:"))
# print("sorted" if x < y and y < z else "not sorted")



# a, b, c, d, e, f = map(float, input().split(" "))
# if a * d - b * c == 0:
#     print("无解")
# else:
#     x = (e * d - b * f) / (a * d - b * c)
#     y = (a * f - e * c) / (a * d - b * c)
#     print(x)
#     print(y)

# today, days = map(int, input().split(" "))
# result = today + days
# result %= 7
# str = " "
# if result == 0:
#     str = "星期日"
# elif result == 1:
#     str = "星期一"
# elif result == 2:
#     str = "星期二"
# elif result == 3:
#     str = "星期三"
# elif result == 4:
#     str = "星期四"
# elif result == 5:
#     str = "星期五"
# elif result == 6:
#     str = "星期六"
# print(str)

#输入数据
side1, side2, side3 = map(float, input().split(" "))
#判断边长是否合理
if side1 + side2 > side3 and side1 + side3 > side2 and side3 + side2 > side1:
    print(f'{(side1 + side2 + side3):.0f}')
else:
    print("非法")
